package club.gskj.common.exception;

/**
 * 自定义异常信心 :  无库存信息异常
 */
public class NoStockException extends RuntimeException {

    /***
     * 商品id
     */
    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品id: " + skuId + " 已没有足够的库存了");
        this.skuId = skuId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
